package com.qiangqiang.resoldhouse.dto;

import com.qiangqiang.resoldhouse.entity.Agent;
import com.qiangqiang.resoldhouse.entity.Comment;
import com.qiangqiang.resoldhouse.entity.HouseResource;
import com.qiangqiang.resoldhouse.entity.User;
import lombok.Data;

/**
 * @author: zqh
 * @date: 2018/8/14 9:25
 * @description:
 */
@Data
public class AppointmentDTO {

    //预约id
    private Long appointmentId;

    //预约的房子的id
    private Long houseId;

    //预约看房的用户的id
    private Long userId;

    //预约的经纪人的id
    private Long agentId;

    //本次预约的评价的id，如果为空，说明未评价
    private Long commentId;

    //预约看房的时间
    private String orderTime;

    //预约备注
    private String remark;

    //房源，用于查看预约时展示
    private HouseResourceDTO house;

    //经纪人，用于查看预约时展示
    private AgentDTO agent;

    //用户，用于查看预约时展示
    private User user;

    //评论，为空说明未评价
    private CommentDTO comment;

    //是否已完成，及order_time是否大于nowTime-1天
    private Boolean finished;
}
